package structural_pattern.flyweight;

// 抽象享元角色
public abstract class AbstractBox {
    // 获取图形
    public abstract String getShape();
    // 显示图形和颜色
    public void display(String color) {
        System.out.println(color + getShape() + "形方块");
    }
}
